from itertools import count
from collections import defaultdict

D = defaultdict(list)

for cube in (n**3 for n in count()):
    L = D[tuple(sorted(str(cube)))]
    L.append(cube)
    
    if 5 == len(L):
        print L
        break
